{% extends "master.html" %}

{% block title %}检视日志 {{ user.first_name }} {{ user.last_name }}{% endblock %}

{% block body %}
	<table class="doclist" width="100%" cellspacing="0" cellpadding="3" border="0"><tbody>
		<tr class="person_day3" valign="top">
			<td width="5px"><b>#</b></td>
			<td width="15px" align="center">日期</td>
			<td width="5px" align="center">Y/N</td>
			<td align="center">当日小结</td>
			<td align="center">次日安排</td>
			<td width="70px" align="center">操作</td>
		</tr>
		{% for chkitem in logs %}
		{% if chkitem.log %}
		<tr valign="top" onmouseout="this.style.backgroundColor='#f8f8f0'" onmouseover="this.style.backgroundColor='#ffc900'" style="background-color: #f8f8f0;" class="tally_data_1">
		{% else %}
		<tr valign="top" onmouseout="this.style.backgroundColor='#ff8888'" onmouseover="this.style.backgroundColor='#ffc900'" style="background-color: #ff8888;" class="tally_data_1">
		{% endif %}
			<td width="5px" class="app listLine"><font color="#000000"><b>{{forloop.counter}}</b></font></td>
			<td width="50px" align="center" class="app listLine"><font color="#000000">{{chkitem.date|date:"y/m/d"}}</font></td>
			<td width="5px" align="center" class="app listLine"><font color="#000000">{{ chkitem.log|yesno:"Y,N,N" }}</font></td>
			<td class="app listLine" title="点击查看" onclick="view_dlog_item({{chkitem.log.id}});return false;"><font color="#000000">{{ chkitem.log.content }}</font></td>
			<td class="app listLine" title="点击查看" onclick="view_dlog_item({{chkitem.log.id}});return false;"><font color="#000000">{{ chkitem.log.plan }}</font></td>
			<td width="70px" align="center" class="app listLine"><font color="#000000"/>
			{% if chkitem.log %}
			<a href="/dlog/modify/{{chkitem.log.id}}" title="修改">修改</a> | <a href="/dlog/delete/{{chkitem.log.id}}" title="删除">删除</a>
			{% else %}
			<a href="alert('mailto, todo');">提醒</a>
			{% endif %}
			</td>
		</tr>
		{% endfor %}
	</tbody></table>	
{% endblock %}

{% block function %}
{% if users %}
	<br/>看看别人的
	<div class="sbjtd">
	{% for user in users %}
	<a href="/dlog/pcheck/{{user.id}}/{{cdate.year}}/{{cdate.month}}/">{{user.first_name}}{{user.last_name}}</a>&nbsp;
	{% endfor %}
	</div>
{% endif %}
{% endblock %}